package com.wjj.demo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;

import com.wjj.demo.adapter.XXlistviewAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Wjj on 16/11/22.
 */
public class AppBarActivity extends AppCompatActivity {
    private ListView listView;
    private List<String> lists = new ArrayList<>();
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_appbar);

        listView= (ListView) findViewById(R.id.listview);
        for (int i = 0; i < 120; i++) {
            lists.add("data-----" + i);
        }

        listView.setAdapter(new XXlistviewAdapter(lists, this));
    }
}
